package com.zg.datapush.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 接口配置新增请求
 * @author zg
 */
@Data
@ApiModel(value = "接口配置新增请求", description = "接口配置新增请求")
public class DpInterfaceConfigAddReq {
    
    @NotNull(message = "任务ID不能为空")
    @ApiModelProperty(value = "任务ID", required = true)
    private Long taskId;
    
    @NotBlank(message = "推送类型不能为空")
    @ApiModelProperty(value = "推送类型", required = true)
    private String pushType;
    
    @ApiModelProperty(value = "接口URL")
    private String url;
    
    @ApiModelProperty(value = "HTTP方法")
    private String httpMethod;
    
    @ApiModelProperty(value = "请求头")
    private String headers;
    
    @ApiModelProperty(value = "请求模板")
    private String requestTemplate;
    
    @ApiModelProperty(value = "自定义处理器类名")
    private String handlerClass;
    
    @ApiModelProperty(value = "自定义处理器方法名")
    private String handlerMethod;
}
